package com.muyu.system.mapper;

import java.util.List;

import com.muyu.danmo.domain.DanmoAddresses;
import com.muyu.system.domain.DanmoMarketOrderDetails;
import org.apache.ibatis.annotations.Param;

/**
 * 书画市场订单详情Mapper接口
 * 
 * @author kunzong
 * @date 2024-12-04
 */
public interface DanmoMarketOrderDetailsMapper 
{
    /**
     * 查询书画市场订单详情
     * 
     * @param id 书画市场订单详情主键
     * @return 书画市场订单详情
     */
    public DanmoMarketOrderDetails selectDanmoMarketOrderDetailsById(@Param("id") Long id);

    /**
     * 查询书画市场订单详情列表
     * 
     * @param danmoMarketOrderDetails 书画市场订单详情
     * @return 书画市场订单详情集合
     */
    public List<DanmoMarketOrderDetails> selectDanmoMarketOrderDetailsList(DanmoMarketOrderDetails danmoMarketOrderDetails);

    /**
     * 新增书画市场订单详情
     * 
     * @param danmoMarketOrderDetails 书画市场订单详情
     * @return 结果
     */
    public int insertDanmoMarketOrderDetails(DanmoMarketOrderDetails danmoMarketOrderDetails);

    /**
     * 修改书画市场订单详情
     * 
     * @param danmoMarketOrderDetails 书画市场订单详情
     * @return 结果
     */
    public int updateDanmoMarketOrderDetails(DanmoMarketOrderDetails danmoMarketOrderDetails);

    /**
     * 删除书画市场订单详情
     * 
     * @param id 书画市场订单详情主键
     * @return 结果
     */
    public int deleteDanmoMarketOrderDetailsById(Long id);

    /**
     * 批量删除书画市场订单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoMarketOrderDetailsByIds(Long[] ids);

    DanmoAddresses selectByAddress(@Param("userid") Long userid);

    /**
     * 根据addressId查询用户地址
     * @param addressId
     * @return
     */
    DanmoAddresses selectDanmoAddressesById(@Param("addressId") Long addressId);

    /**
     * 根据订单id查询订单详情
     * @param orderId
     * @return
     */
    DanmoMarketOrderDetails selectDanmoMarketOrderDetailsByOrderId(@Param("orderId") Long orderId);
}
